import request from '@/utils/request.js'

// 查询边坡雷达列表
export function listRadar(query) {
  return request({
    url: '/video/radar/list',
    method: 'get',
    params: query
  })
}

// 查询边坡雷达详细
export function getRadar(id) {
  return request({
    url: '/video/radar/' + id,
    method: 'get'
  })
}

// 新增边坡雷达
export function addRadar(data) {
  return request({
    url: '/video/radar',
    method: 'post',
    data: data
  })
}

// 修改边坡雷达
export function updateRadar(data) {
  return request({
    url: '/video/radar',
    method: 'put',
    data: data
  })
}

// 删除边坡雷达
export function delRadar(id) {
  return request({
    url: '/video/radar/' + id,
    method: 'delete'
  })
}
